package com.yuexun.beilunpatient.ui.login.model;


import com.yuexun.beilunpatient.ui.bean.BaseListEntity;
import com.yuexun.beilunpatient.ui.login.bean.LoginBean;
import com.yuexun.beilunpatient.ui.login.bean.RegisterBean;
import com.yuexun.beilunpatient.ui.login.bean.SmsBean;
import com.yuexun.beilunpatient.ui.login.bean.UserDtlBean;

import java.util.Map;

import rx.Observable;

/**
 * Created by chenss on 2018/3/14 0014.
 */

public interface ILoginModel {

    /**
     * 登陆
     * @param praise
     * @return
     */
    public Observable<BaseListEntity<LoginBean>> loginInPatient(Map<String, String> praise);

    /**
     * 发送验证码
     * @param praise
     * @return
     */
    public Observable<BaseListEntity<SmsBean>> registerOfPatientSms(Map<String, String> praise);

    /**
     * 注册
     * @param praise
     * @return
     */
    public Observable<BaseListEntity<RegisterBean>> registerOfPatient(Map<String, String> praise);

    /**
     * 查询患者详情
     * @param praise
     * @return
     */
    public Observable<BaseListEntity<UserDtlBean>> loadPatientInfoDetail(Map<String, String> praise);

    /**
     * 发送重置密码(病人)验证码
     * @param praise
     * @return
     */
    public Observable<BaseListEntity<SmsBean>> resetPasswordOfSms(Map<String, String> praise);

    /**
     * 重置密码
     * @param praise
     * @return
     */
    public Observable<BaseListEntity<LoginBean>> resetPassword(Map<String, String> praise);
}
